Hi |
Re: Calling "Insert OLE object..." from my personnal button
The problem that you have, is that you would need to enter inplace editing mode on the object text attribute before you can insert an OLE object (that is why you get the menu is unavailable message). Unfortunately I found no perm that would let you enter inplace editing for an attribute, so your only option might be, to restrict your menu to certain objects like: Insert Excel Object, Insert Word Object, ... . Then you could insert the object in some test module manually and get the compressed richText using: string sResult = "" toCompressedBase64_ (richTextWithOle (current Object)."Object Text", sResult) print sResult // This yields for my computer some pretty large string: // f1LDkRbAedp//lYtBXl7OTb470VbQWcp/3JY9FWlPPl ....... ElhnMS Then you take this string, embed it into some DXL include file like: // replace that string by the complete string above ... string sgOleDataExcel = "eJztXEmv3LgRvj+g/4PPOQTctCHn ........ ElhnMS" string res = null print fromCompressedBase64_ (sgOleDataExcel, res) (current Object)."Object Text" = richText res
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|